<?php
// $path = dirname ( __FILE__ );
// require_once ($path . DIRECTORY_SEPARATOR . 'mysql' . DIRECTORY_SEPARATOR . 'Mysqli.php');

class Database extends MysqliObj {
	private $database;
	private function __construct() {
		//return parent::getInstance ();
	}
	public static function getInstance(){
		if($database == null) $datebase = new Database();
		return $database;
	}
	public function getAllCourse($num = 20,$page = 0){
		$sql = "select * from course limit $page*$num , $page*$num+20";
		$result = fetch_nums_arrays($sql);
		var_dump($result);
	}
	
}